package com.gift.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 随交易银行收支记录
 */
public class BankByDealt {
    /**
     * 随交易银行记录
     */
    private Integer bdid;
    /**
     * 交易ID
     */
    private Integer did;
    /**
     * 银行卡ID
     */
    private Integer bid;
    /**
     * 银行卡别名
     */
    private String alias;
    /**
     * 游戏名字
     */
    private String gname;
    /**
     * 游戏ID
     */
    private Integer gid;
    /**
     * 收入
     */
    private BigDecimal income;
    /**
     * 支出
     */
    private BigDecimal expend;
    /**
     * 手续费
     */
    private BigDecimal poundage;
    /**
     * 班次;早中晚：012
     */
    private Integer shift;
    /**
     * 操作者ID
     */
    private Integer handlerid;
    /**
     * 操作者
     */
    private String handlers;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public BankByDealt(Integer bdid, Integer did, Integer bid, String alias, String gname, Integer gid, BigDecimal income, BigDecimal expend,BigDecimal poundage,Integer shift, Integer handlerid, String handlers, String remark, LocalDateTime createtime, LocalDateTime modifytime) {
        this.bdid = bdid;
        this.did = did;
        this.bid = bid;
        this.alias = alias;
        this.gname = gname;
        this.gid = gid;
        this.income = income;
        this.expend = expend;
        this.poundage = poundage;
        this.shift = shift;
        this.handlerid = handlerid;
        this.handlers = handlers;
        this.remark = remark;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public BankByDealt() {
        super();
    }

    public Integer getBdid() {
        return bdid;
    }

    public void setBdid(Integer bdid) {
        this.bdid = bdid;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname == null ? null : gname.trim();
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public BigDecimal getIncome() {
        return income;
    }

    public void setIncome(BigDecimal income) {
        this.income = income;
    }

    public BigDecimal getExpend() {
        return expend;
    }

    public void setExpend(BigDecimal expend) {
        this.expend = expend;
    }

    public BigDecimal getPoundage() {
        return poundage;
    }

    public void setPoundage(BigDecimal poundage) {
        this.poundage = poundage;
    }

    public Integer getShift() {
        return shift;
    }

    public void setShift(Integer shift) {
        this.shift = shift;
    }

    public Integer getHandlerid() {
        return handlerid;
    }

    public void setHandlerid(Integer handlerid) {
        this.handlerid = handlerid;
    }

    public String getHandlers() {
        return handlers;
    }

    public void setHandlers(String handlers) {
        this.handlers = handlers == null ? null : handlers.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }

    @Override
    public String toString() {
        return "BankByDealt{" +
                "bdid=" + bdid +
                ", did=" + did +
                ", bid=" + bid +
                ", alias='" + alias + '\'' +
                ", gname='" + gname + '\'' +
                ", gid=" + gid +
                ", income=" + income +
                ", expend=" + expend +
                ", poundage=" + poundage +
                ", shift=" + shift +
                ", handlerid=" + handlerid +
                ", handlers='" + handlers + '\'' +
                ", remark='" + remark + '\'' +
                ", createtime=" + createtime +
                ", modifytime=" + modifytime +
                '}';
    }
}